package com.xizi.a_mianshi;

public class ResortSeqDemo {
    volatile int a = 0;
    boolean flag = false;

    public void method01() {
        a = 1;
        flag = true;
    }

    public void method02() {
        if (flag) {
            a = a + 5;
            System.out.println("reValue:" + a);
        }
    }

    public static void main(String[] args) {

    }
}